<%@page import="model.Album"%>
<%@page import="model.PhotoWrapper"%>
<%@page import="model.Photographer"%>
<%@page import="DAO.Dao"%>

<%@page import="controllers.FillController"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%@ page import="java.util.ArrayList" %>
<%
  FillController contr = new FillController();
	contr.fillDB();
	Dao dao = new Dao();
	Photographer p1 = dao.getPhotographerById(1);
  	PhotoWrapper pw1 = dao.getPhotoWrapperById(1);
  	Album a = dao.getAlbumById(1);
  	
  	out.println(  p1.getName() );
  	out.println(  p1.getLastName() );
  	out.println(  p1.getTown() );
  	
  	out.println(  pw1.getTitle() );
  	out.println(  pw1.getPhotographerId() );
  	out.println(  a.getTitle() );
  	String url = pw1.getUrl();
  	

%>
<img alt="" src="D:/Photographers/1.jpg">

</body>
</html>